package code_database

import (
	"github.com/jinzhu/gorm"
)

func ConnectInit() (*gorm.DB, error) {
	db, err := gorm.Open("mysql", "root:123@(cw_mysql:3306)/go_todo_list?charset=utf8mb4&parseTime=True&loc=Local")
	return db, err
}
